package com.sofwin.service.impl.contents;

import com.github.pagehelper.PageInfo;
import com.sofwin.mapper.CInformationMapper;
import com.sofwin.pojo.CInformationExample;
import com.sofwin.pojo.CInformationWithBLOBs;
import com.sofwin.service.contents.CompanyBasicSituationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: authority-management-system.git
 * @description: TODO
 * @author: Mr.Gao
 * @create: 2021-04-25 11:23
 **/
@Service
public class CompanyBasicSituationServiceImpl implements CompanyBasicSituationService {

    @Autowired
    private CInformationMapper mapper;

    @Override
    public PageInfo<CInformationWithBLOBs> selectAll(CInformationWithBLOBs cInformationWithBLOBs) {
        CInformationExample example = new CInformationExample();
        CInformationExample.Criteria criteria = example.createCriteria();
        criteria.andCompanyIdEqualTo(cInformationWithBLOBs.getCompanyId());
        List<CInformationWithBLOBs> cInformationWithBLOBs1 = mapper.selectByExampleWithBLOBs(example);
        return new PageInfo<CInformationWithBLOBs>(cInformationWithBLOBs1);
    }

}
